import request from '@/utils/request'

export default{
    getPageList(page, limit, searchObj) {
        return request({
          url: `/admin/user/${page}/${limit}`,
          method: 'get',
          params: searchObj
        })
       },
       lock(id, status) {
          return request({
            url: `/admin/user/lock/${id}/${status}`,
            method: 'get'
          })
        },
        show(id) {
          return request({
            url: `/admin/user/show/${id}`,
            method: 'get'
          })
        },
        approval(id, authStatus) {
            return request({
              url: `/admin/user/approval/${id}/${authStatus}`,
              method: 'get'
            })
          }          
}
